import 'package:flutter/material.dart';
import 'package:x3_component_core/components/button_components/base_expand_down_button.dart';

/// author：william on 2021/4/12 14:09
/// email：362661044@qq.com
class AdvancedFilterExpandedIcon extends StatelessWidget {
  final double height;
  final bool isExpanded;
  final Function(bool) onExpanded;
  const AdvancedFilterExpandedIcon({Key key, @required this.height, @required this.isExpanded, this.onExpanded}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      width: 34,
      child: SizedBox.expand(
        child: Align(
          alignment: Alignment.topLeft,
          child: Container(
            alignment: Alignment.center,
            height: height,
            child: BaseExpandDownButton(isExpanded: isExpanded, onPressed: onExpanded),
          ),
        ),
      ),
    );
  }
}
